package com.ruoyi.system.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.xss.Xss;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/***
 * @title WAppSysUserDto
 * @description <description class purpose>
 * @author WeiShuo
 * @version 1.0.0
 * @create 2024/6/25 16:29
 **/
public class WAppSysUserDto extends BaseEntity {

    /** 用户ID */
    private Long userId;


    /** 用户昵称 */
    private String nickName;


    /** 用户头像 */
    private String avatar;

    public Long getUserId()
    {
        return userId;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    @Xss(message = "用户昵称不能包含脚本字符")
//    @NotBlank(message = "用户昵称不能为空")
    @Size(min = 0, max = 30, message = "用户昵称长度不能超过30个字符")
    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getAvatar()
    {
        return avatar;
    }

    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }
}
